import request from './ajax'

// 获取订单列表
export const getOrders = (params) => {
  return request({
    url: '/private/v1/orders',
    method: 'get',
    params
  })
}

// 获取订单详情
export const getOrderDetail = (orderId) => {
  return request({
    method: 'GET',
    url: `/private/v1/orders/${orderId}`
  })
}

// 修改订单信息
export const updateOrderDetail = (orderId, data) => {
  return request({
    method: 'PUT',
    url: `/private/v1/orders/${orderId}`,
    data
  })
}

export const expressAdress = () => {
  return request({
    url: '/private/v1/kuaidi/804909574412544580',
    method: 'get'
  })
}
